package com.cc.demo.dto;

import lombok.*;

import java.io.Serializable;
import java.util.Date;


@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder(toBuilder = true)
public class TransactionMessage<T> implements Serializable {
    private static final long serialVersionUID = 3261873738337546180L;

    private Integer id;

    private String businessKey;

    private String channel;

    private String destination;

    private String owner;

    private String domain;

    private String messageResult;

    private Long duration;

    private String status;

    private Date receivedTime;

    private String messageNote;

    private Date executedTime;

    private T body;

    /*
     * 1.  id 可以确定唯一的一条message
     * 2. businessKey + owner + domain 可以确定唯一一条的message
     */


}